﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

public partial class AdminCMS_tab_Message_Fix : System.Web.UI.Page
{
    int mid = 0;

    protected void Page_Load(object sender, EventArgs e)
    {
        UIMethod.GetQuery(ref mid, "id");
        if (!IsPostBack)
        {
            DataEntity.tab_Message t = new DataEntity.tab_Message();
            t.Select(mid);
            if (!t.IsEmpty)
            {
                RequestQuery.GetEntityValues(t, form1);
            }
        }
    }

    protected void btn_submit_Click(object sender, EventArgs e)
    {
        DataEntity.tab_Message t = new DataEntity.tab_Message(true);
        t.msg_ReplyContent = Convert.ToString(msg_ReplyContent.Text);
        t.msg_ReplyObject = Convert.ToString(msg_ReplyObject.Text);
        t.Update(mid);

        StringBuilder sb = new StringBuilder();
        
        UIMethod.Confirm("修改成功，继续修改吗？", "", "location = 'tab_Message_List.aspx" + sb.ToString() + "';");
    }
}
